package com.jsh.erp;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootVersion;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.core.SpringVersion;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan(basePackages = {"com.jsh.erp.datasource.mappers"})
@ServletComponentScan
@EnableScheduling
public class ErpApplication {

	/** 启动前注意数据库服务器是否启动  */
	public static void main(String[] args) {
		/**  启动前查看Spring Boot版本与Spring版本 */
		String springVersion = SpringVersion.getVersion();
	    String springBootVersion = SpringBootVersion.getVersion();
	    System.out.println("[Spring Version] = " + springVersion);
	    System.out.println("[SpringBoot Version] = " + springBootVersion);
		SpringApplication.run(ErpApplication.class, args);
	}

}
